/**
 * 应用常量配置
 * 
 * 定义应用中使用的常量值
 */

// 设备分类映射（按照Mindray产品线）
export const DEVICE_CATEGORIES = {
  emergency_life_support: {
    id: 'emergency_life_support',
    name: '急救与生命支持',
    icon: 'FirstAidKit',
    description: '急救设备、生命支持系统'
  },
  in_vitro_diagnostics: {
    id: 'in_vitro_diagnostics', 
    name: '体外诊断',
    icon: 'TestTube',
    description: '血液分析、生化分析等检验设备'
  },
  infusion_pump: {
    id: 'infusion_pump',
    name: '输注泵',
    icon: 'Medicine',
    description: '输液泵、注射泵等输注设备'
  },
  medical_imaging: {
    id: 'medical_imaging',
    name: '医学影像',
    icon: 'Camera',
    description: '超声、X光等影像诊断设备'
  },
  surgical_equipment: {
    id: 'surgical_equipment',
    name: '外科设备',
    icon: 'Knife',
    description: '手术器械、外科辅助设备'
  }
}

// 设备类型映射（保持兼容性）
export const DEVICE_TYPES = {
  detection: '检测设备',
  treatment: '治疗设备',
  monitoring: '监护设备',
  diagnosis: '诊断设备'
}

// 设备状态映射
export const DEVICE_STATUS = {
  active: '已激活',
  inactive: '未激活'
}

// 文件上传限制
export const UPLOAD_LIMITS = {
  IMAGE_MAX_SIZE: 5 * 1024 * 1024, // 5MB
  IMAGE_TYPES: ['image/jpeg', 'image/jpg', 'image/png'],
  LOG_TYPES: ['text/plain', 'application/json'],
  LOG_EXTENSIONS: ['.log', '.txt', '.json']
}

// API响应状态码
export const API_STATUS = {
  SUCCESS: 200,
  CREATED: 201,
  BAD_REQUEST: 400,
  UNAUTHORIZED: 401,
  FORBIDDEN: 403,
  NOT_FOUND: 404,
  SERVER_ERROR: 500
}

// 本地存储键名
export const STORAGE_KEYS = {
  TOKEN: 'auth_token',
  USER_INFO: 'user_info',
  SETTINGS: 'app_settings'
}

